package com.ict.web.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 评审任务对象 yzq_review_task
 *
 * @author ruoyi
 * @date 2022-02-16
 */
@Data
public class QueryReviewTaskThirdDto {
    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "节点")
    private String node;

    @ApiModelProperty(value = "节点状态")
    private String nodeStatus;

    @ApiModelProperty(value = "机构id")
    private Long ormId;

    @ApiModelProperty(value = "评审类型(0:方案评审 1：年度项目清单评审")
    private String reviewType;

    @ApiModelProperty(value = "抽取状态{1：专家待接受 2：专家已接受 3 ：专家待评价 4：专家已评价}")
    private String expertStatus;

    @ApiModelProperty(value = "处理状态")
    private String processingStatus;

    private List<String> statusCollect;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date starTime;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;

    /** 请求参数 */
    private Map<String, Object> params;
    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

}
